package com.hospital.hl7package.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lvyao
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("DRUG_PRESC_MASTER")
public class DrugPrescMaster implements Serializable {

    private static final long serialVersionUID=1L;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("PRESC_DATE")
    private Date prescDate;

    @TableField("PRESC_NO")
    private Integer prescNo;

    @TableField("DISPENSARY")
    private String dispensary;

    @TableField("PATIENT_ID")
    private String patientId;

    @TableField("NAME")
    private String name;

    @TableField("NAME_PHONETIC")
    private String namePhonetic;

    @TableField("IDENTITY")
    private String identity;

    @TableField("CHARGE_TYPE")
    private String chargeType;

    @TableField("UNIT_IN_CONTRACT")
    private String unitInContract;

    @TableField("PRESC_TYPE")
    private Integer prescType;

    @TableField("PRESC_ATTR")
    private String prescAttr;

    @TableField("PRESC_SOURCE")
    private Integer prescSource;

    @TableField("REPETITION")
    private Integer repetition;

    @TableField("COSTS")
    private BigDecimal costs;

    @TableField("PAYMENTS")
    private BigDecimal payments;

    @TableField("ORDERED_BY")
    private String orderedBy;

    @TableField("PRESCRIBED_BY")
    private String prescribedBy;

    @TableField("ENTERED_BY")
    private String enteredBy;

    @TableField("DISPENSING_PROVIDER")
    private String dispensingProvider;

    @TableField("SEND_OPERATOR")
    private String sendOperator;

    @TableField("DISPENSING_DATETIME")
    private Date dispensingDatetime;

    @TableField("WIN_NO")
    private String winNo;

    @TableField("PRESC_ARRY_NO")
    private String prescArryNo;

    @TableField("VISIT_ID")
    private Integer visitId;

    @TableField("SEX")
    private String sex;

    @TableField("AGE")
    private String age;

    @TableField("QUEUE_ID")
    private String queueId;

    @TableField("STATUS")
    private String status;

    @TableField("ENTERED_DATETIME")
    private Date enteredDatetime;

    @TableField("COMMIT_BY")
    private String commitBy;

    @TableField("COMMIT_DATETIME")
    private Date commitDatetime;

    @TableField("VERIFY_BY")
    private String verifyBy;

    @TableField("VERIFIED_DATETIME")
    private Date verifiedDatetime;

    @TableField("BILLING_BY")
    private String billingBy;

    @TableField("BILLING_DATETIME")
    private Date billingDatetime;

    @TableField("CANCELED_BY")
    private String canceledBy;

    @TableField("CANCELED_DATETIME")
    private Date canceledDatetime;

    @TableField("REFUND_BY")
    private String refundBy;

    @TableField("REFUND_DATETIME")
    private Date refundDatetime;

    @TableField("CALLED_BY")
    private String calledBy;

    @TableField("CALLED_DATETIME")
    private Date calledDatetime;

    @TableField("TAKING_INDICATOR")
    private Integer takingIndicator;

    @TableField("DECOCTION_INDICATOR")
    private Integer decoctionIndicator;

    @TableField("REFUND_PRESC_NO")
    private String refundPrescNo;

    @TableField("RET_BAR")
    private String retBar;

    @TableField("OUTP_ID")
    private Integer outpId;

    @TableField("DIAGNOSIS_NAME")
    private String diagnosisName;


}
